package cn.lingnan.controller.common;

import cn.lingnan.utils.LargeModelUtils;
import cn.lingnan.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@CrossOrigin
public class LargeMdelController {

    @GetMapping("/largeModel")
    public Result largeModel(String input) throws Exception {
        log.info("输入largeModel的参数为：{}", input);
        String response = LargeModelUtils.getResponse(input);
        return Result.success(response);
    }
}
